package ebuy.com.dao;

import ebuy.com.pojo.Easybuy_user;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface Easybuy_userdao {
    Easybuy_user Loginrequest(@Param("userName")String userName,@Param("password")String password);
    Integer Querybyusername(@Param("userName")String userName);
    //出现地址进行支付  一对一
    Easybuy_user lookfortheaddress(@Param("loginName")String loginName,@Param("isDefault")Integer isDefault);
    //增加用户
    int increaseuser(Easybuy_user easybuy_user);
    //根据用户名字查询用户
    Easybuy_user Judgewhethertheusersnamesrepeated(@Param("loginName") String  loginName);
    //实现一对一的操作
    Easybuy_user Searchalluserinformation();

}
